<ui-view>
	<div class="xgsj-bg tksq-bg">
    	<header class="common_head-box">
			<div class="common_head">
				<img src="image/back.png" ng-click="backButton()" alt="" />
				<span ng-if="data.refund_type == 1">退款申请</span>
                <span ng-if="data.refund_type == 2">退货申请</span>
			</div>
		</header>
        <div class="tksq-win" style="padding-top:3.8rem">
            <div class="tksq-box">
        	<div class="tksq-win-text">
        		<div class="tksq-win-text-point">

        		</div>
        		<div class="tksq-win-text-main">
        			<div class="tksq-win-text-main-title">
        				买家申请退款
        			</div>
        			<div class="tksq-win-text-main-why">
        				{{data.reason}}
						<!-- <img style="width:18%;background:#000000;" ng-src="{{data.voucher_pic1}}" alt="">
						<img style="width:18%;background:#000000;" ng-src="{{data.voucher_pic2}}" alt="">
						<img style="width:18%;background:#000000;" ng-src="{{data.voucher_pic3}}" alt="">
						<img style="width:18%;background:#000000;" ng-src="{{data.voucher_pic4}}" alt="">
						<img style="width:18%;background:#000000;" ng-src="{{data.voucher_pic5}}" alt=""> -->
        			</div>
        		</div>
        		<div class="tksq-win-text-date">
        			<span>{{data.created}}</span>
        		</div>
        	</div>
        	<div class="tksq-win-text">
        		<div class="tksq-win-text-point">

        		</div>
        		<div class="tksq-win-text-main">
        			<div class="tksq-win-text-main-title">
        				退款说明
        			</div>
        			<div class="tksq-win-text-main-why">
        				{{data.refund_desc}}
        			</div>
        		</div>
        		<!-- <div class="tksq-win-text-date">
        			<span>5月5日</span><span>15:20</span>
        		</div> -->
        	</div>
        	<div class="tksq-win-text">
        		<div class="tksq-win-text-point">

        		</div>
        		<div class="tksq-win-text-main">
        			<div class="tksq-win-text-main-title">
        				退款金额
        			</div>
        			<div class="tksq-win-text-main-why">
        				&yen;<span>{{data.total_fee}}</span>
        			</div>
        		</div>
        		<!-- <div class="tksq-win-text-date">
        			<span>5月5日</span><span>15:20</span>
        		</div> -->
        	</div>
            <!-- 退款流程start -->
            <div class="tksq-win-text" ng-if="data.status == 0">
                <div class="tksq-win-text-point tksq-win-text-bcolor">

                </div>
                <div class="tksq-win-text-main ">
                    <div class="tksq-win-text-main-title tksq-win-text-tcolor">
                        <!--等待审核-->
                        {{data.status_name}}
                    </div>
                    <div class="tksq-win-text-main-why">
                        <!-- {{data.refuse_message}} -->
                        24小时内会接收处理，请稍等
                    </div>
                </div>
                <div class="tksq-win-text-date">
                    <span>{{data.modified}}</span>
                </div>
            </div>
                <div class="tksq-win-text" ng-if="data.status == 10">
                    <div class="tksq-win-text-point tksq-win-text-bcolor">

                    </div>
                    <div class="tksq-win-text-main ">
                        <div class="tksq-win-text-main-title tksq-win-text-tcolor">
                            <!--拒绝退款-->
                            {{data.status_name}}
                        </div>
                        <div class="tksq-win-text-main-why">
                            {{data.refuse_message}}
                        </div>
                    </div>
                    <div class="tksq-win-text-date">
                        <span>{{data.modified}}</span>
                    </div>
                </div>
            <div class="tksq-win-text" ng-if="data.status == 31">
                <div class="tksq-win-text-point tksq-win-text-bcolor">

                </div>
                <div class="tksq-win-text-main ">
                    <div class="tksq-win-text-main-title tksq-win-text-tcolor">
                        <!--同意退款-->
                        {{data.status_name}}
                    </div>
                    <div class="tksq-win-text-main-why">
                        24小时内金额会原路返回
                    </div>
                </div>
                <div class="tksq-win-text-date">
                     <span>{{data.modified}}</span>
                </div>
            </div>
                <div class="tksq-win-text" ng-if="data.status == 30">
                    <div class="tksq-win-text-point tksq-win-text-bcolor">

                    </div>
                    <div class="tksq-win-text-main ">
                        <div class="tksq-win-text-main-title tksq-win-text-tcolor">
                            <!--退款关闭-->
                            {{data.status_name}}
                        </div>
                        <div class="tksq-win-text-main-why">
                            售后单超时自动关闭
                        </div>
                    </div>
                    <div class="tksq-win-text-date">
                        <span>{{data.modified}}</span>
                    </div>
                </div>
                <div class="tksq-win-text" ng-if="data.status == 20 && data.refund_type == 2">
                    <div class="tksq-win-text-point tksq-win-text-bcolor">

                    </div>
                    <div class="tksq-win-text-main ">
                        <div class="tksq-win-text-main-title tksq-win-text-tcolor">
                            <!--同意受理退货-->
                            {{data.status_name}}
                        </div>
                        <div class="tksq-win-text-main-why">
                            请上传快递单号
                        </div>
                    </div>
                    <div class="tksq-win-text-date">
                        <span>{{data.modified}}</span>
                    </div>
                </div>
                <div class="tksq-win-text" ng-if="data.status == 21 && data.refund_type == 2">
                    <div class="tksq-win-text-point tksq-win-text-bcolor">

                    </div>
                    <div class="tksq-win-text-main ">
                        <div class="tksq-win-text-main-title tksq-win-text-tcolor">
                            <!--拒绝受理退货-->
                            {{data.status_name}}
                        </div>
                        <div class="tksq-win-text-main-why">
                            {{data.refuse_message}}
                        </div>
                    </div>
                    <div class="tksq-win-text-date">
                        <span>{{data.modified}}</span>
                    </div>
                </div>
                <div class="tksq-win-text" ng-if="data.status == 2 && data.refund_type == 2">
                    <div class="tksq-win-text-point">

                    </div>
                    <div class="tksq-win-text-main ">
                        <div class="tksq-win-text-main-title">
                            <!--同意退货-->
                            同意退货
                        </div>
                        <div class="tksq-win-text-main-why">
                            已经上传订单号
                        </div>
                    </div>
                    <div class="tksq-win-text-date">
                        <span>{{data.good_return_time}}</span>
                    </div>
                </div>
                <div class="tksq-win-text" ng-if="data.status == 2 && data.refund_type == 2">
                    <div class="tksq-win-text-point tksq-win-text-bcolor">

                    </div>
                    <div class="tksq-win-text-main ">
                        <div class="tksq-win-text-main-title tksq-win-text-tcolor">
                            <!--等待卖家确认收货-->
                            {{data.status_name}}
                        </div>
                        <div class="tksq-win-text-main-why">
                            {{data.refuse_message}}
                        </div>
                    </div>
                    <div class="tksq-win-text-date">
                        <span>{{data.modified}}</span>
                    </div>
                </div>
            <!-- 退款流程end -->
            <!-- 退款退货流程start -->
            <!-- 退款退货end -->
        	<!-- <div class="tksq-win-text">
        		<div class="tksq-win-text-point tksq-win-text-bcolor">

        		</div>
        		<div class="tksq-win-text-main ">
        			<div class="tksq-win-text-main-title tksq-win-text-tcolor">
        				不通过
        			</div>
        			<div class="tksq-win-text-main-why">
        				原因
        			</div>
        		</div>
        		<div class="tksq-win-text-date">
        			<span>5月5日</span><span>15:20</span>
        		</div>
        	</div> -->
            </div>
        </div>
        <div ng-if="data.refund_type == 2 && (data.status == 31 || data.status == 20 || data.status == 2)" class="tksq-tuihuomsg">
        	<div class="tksq-tuihuomsg-title">
        		退货信息
        	</div>
        	<div class="tksq-tuihuomsg-main">
        		<div class="tksq-tuihuomsg-main-kuaidi">
        			<div class="tksq-tuihuomsg-main-kuaidi-title">
        				选择快递
        			</div>
					<select ng-model="express.code" ng-if="!data.sid">
					  <option ng-repeat="i in data.express" value ="{{i.express_code}}">{{i.express_name}}</option>
					</select>
        			<div class="tksq-tuihuomsg-main-kuaidi-select" ng-if="!data.sid">
        				<img src="image/xia.png"/>
        			</div>
                    <div style="width: 12.5rem;" ng-if="data.sid">{{data.company_name}}</div>
        		</div>
        		<div class="tksq-tuihuomsg-main-dingdan">
        			<div class="tksq-tuihuomsg-main-dingdan-title">
        				填写订单号
        			</div>
        			<input type="text" class="tksq-tuihuomsg-main-dingdan-input" ng-readonly="data.sid" name="" id="" value="" ng-model="kuaidi.danhao" style="padding-left: 0.3rem;" />
        		</div>
        	</div>
        </div>
		<div ng-if="data.refund_type == 2 && data.sid == '' && data.status!=21 && data.status!=30 && data.status!=0" class="tksq-tuihuomsg-time">
			退货倒计时：<span>{{data.refund_day}}</span>天<span>{{data.refund_hour}}</span>:<span>{{data.refund_minute}}</span>小时
		</div>
        <div ng-if="data.status == 20 && data.sid == '' " class="tksq-btn" ng-click="tijiao()">
        	提交信息
        </div>
        <div ng-if="data.status == 10 || data.status == 21" ng-click="tiaozhuan(data)" class="tksq-btn">
        	重新发起申请
        </div>
    </div>
</ui-view>
